$('.back1').click(function () {
    location.href = 'index.html'
})
let url1 = 'http://47.96.224.206:8080/CandyFirst/stylistController/selectStylist'
//let url2='http://j3sik7.natappfree.cc/CandyFirst_war_exploded/stylistController/selectStylist'

//let url='http://vipqyx.natappfree.cc/CandyFirst_war_exploded/stylistController/selectStylist'

//let url3='http://6zhh8w.natappfree.cc/CandyFirst_war_exploded/stylistController/selectStylist'


//let url4='http://haeaty.natappfree.cc/CandyFirst_war_exploded/stylistController/selectStylist'


$.post(url1, function (data) {
    console.log(data)
    let html1 = $.map(data, v => `
    <article data-id="${v.userid}" date-id="${v.id}">
    <div class="banner-top">
        <div class="circle">
            <img src="${v.headUrl}" alt="">
            <span class="iconfont icon-vip-tianchong"></span>
        </div>
        <div class="circle-right">
            <div class="circle-right-top">
                <h4>${v.nickname}</h4>
                <p>联系TA</p>
            </div>
            <p>设计报价:${v.pricefloor}-${v.priceceiling}元/m²</p>
        </div>
    </div>
    <p>作品被收藏超${v.fansnum}次</p>
    <div class="banner-bottom">
       <img src="img/designer.png" alt="">
       <img src="img/designer.png" alt="">
       <img src="img/designer.png" alt="">
    </div>
</article>
    `).join('')
    //console.log(html1)
    $('article').eq(0).before(html1)
})



var lis = $('.nav li')

lis.click(function () {
    lis.css({
        'border-bottom': '0.06rem solid transparent'
    })
    $(this).css({
        'border-bottom': '0.06rem solid #FED946'
    })
})

$('section').on('click', 'article', function () {

    console.log(this, `1`)
    let uid = this.getAttribute('data-id')
    console.log(uid)
    location.href = 'detail.html?uid=' + uid
})